package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the ticci_acce_x_serv database table.
 * 
 */
@Embeddable
public class TicciAcceXServPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="EMPR_CONS")
	private int emprCons;

	@Column(name="AUTO_CONS")
	private int autoCons;

	@Column(name="SERV_CONS")
	private long servCons;

	@Column(name="MAES_ACCESORIO")
	private int maesAccesorio;

	@Column(name="ACSE_CONS")
	private int acseCons;

	public TicciAcceXServPK() {
	}
	public int getEmprCons() {
		return this.emprCons;
	}
	public void setEmprCons(int emprCons) {
		this.emprCons = emprCons;
	}
	public int getAutoCons() {
		return this.autoCons;
	}
	public void setAutoCons(int autoCons) {
		this.autoCons = autoCons;
	}
	public long getServCons() {
		return this.servCons;
	}
	public void setServCons(long servCons) {
		this.servCons = servCons;
	}
	public int getMaesAccesorio() {
		return this.maesAccesorio;
	}
	public void setMaesAccesorio(int maesAccesorio) {
		this.maesAccesorio = maesAccesorio;
	}
	public int getAcseCons() {
		return this.acseCons;
	}
	public void setAcseCons(int acseCons) {
		this.acseCons = acseCons;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TicciAcceXServPK)) {
			return false;
		}
		TicciAcceXServPK castOther = (TicciAcceXServPK)other;
		return 
			(this.emprCons == castOther.emprCons)
			&& (this.autoCons == castOther.autoCons)
			&& (this.servCons == castOther.servCons)
			&& (this.maesAccesorio == castOther.maesAccesorio)
			&& (this.acseCons == castOther.acseCons);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.emprCons;
		hash = hash * prime + this.autoCons;
		hash = hash * prime + ((int) (this.servCons ^ (this.servCons >>> 32)));
		hash = hash * prime + this.maesAccesorio;
		hash = hash * prime + this.acseCons;
		
		return hash;
	}
}